package model

import (
	"gorm.io/gorm"
)

type CoursePanic struct {
	gorm.Model
	CourseId    int     `gorm:"type:int(10);not null;comment:课程id"`
	CourseName  string  `gorm:"type:varchar(100);not null;comment:课程名称"`
	CourseInfo  string  `gorm:"type:varchar(100);comment:课程简介"`
	CoursePrice float32 `gorm:"type:decimal(10,2);not null;comment:课程价格"`
	Num         int     `gorm:"type:int(10);not null;comment:抢购库存"`
	StartTime   string  `gorm:"type:varchar(100);not null;comment:开始时间"`
	EndTime     string  `gorm:"type:varchar(100);not null;comment:结束时间"`
	Status      int     `gorm:"type:tinyint(10);not null;comment:状态 1-未开始 2-抢购中 3-已结束"`
}
